<!--
 * @Description:: 请补充填写
 * @Version: 1.0
 * @Author: 小白
 * @Date: 2022-04-14 08:32:19
 * @LastEditors: 小白
 * @LastEditTime: 2022-04-14 10:16:15
 * @FilePath: \vue3.0\src\components\icon.vue
-->
<template>
  <i
    class="icon"
    :class="icon"
    :style="{fontSize:size+'px',color:color}"
  />
</template>

<script lang="ts">
export default {
  name: 'IconVue',
  props: {
    icon: {
      type: [String],
      default: ''
    },
    size: {
      type: [Number],
      default: 20
    },
    color: {
      type: [String],
      default: ''
    }
  }

}
</script>

<style>

</style>
